package com.zhbit.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.NoticemangerService;

public class DeletenoticeAction extends ActionSupport{
	private int id;
	private NoticemangerService ns;
	public void setNs(NoticemangerService ns) {
		this.ns = ns;
	}

	public NoticemangerService getNs() {
		return ns;
	}

	

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}
	public String execute() throws Exception {
        ns.delete(id);
		return SUCCESS;	
	}
}
